package com.mzj.saas.mservice.community.repository;

import com.mzj.saas.mservice.community.entity.CommunityServiceFacilities;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface CommunityServiceFacilitiesRepository extends PagingAndSortingRepository<CommunityServiceFacilities, Long>, JpaSpecificationExecutor<CommunityServiceFacilities>, JpaRepository<CommunityServiceFacilities, Long> {

    @Transactional
    void deleteByCommunityId (String communityId);

    List<CommunityServiceFacilities> findByCommunityIdIn(List<String> communityId);
}
